<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>日语在线考试</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>

		<s:if test="questionType.type=='reading'">
		reading
			<s:if test="questionType.content=='select'">
			${questionType.content}---------------
				<s:form action="insertQuestion" method="post" name="form1">
					<s:hidden name="questionOrigin.questionOriginId"
						value="%{questionOrigin.questionOriginId}"></s:hidden>
					<s:hidden name="questionType.questionTypeId"
						value="%{questionType.questionTypeId}"></s:hidden>
					<s:doubleselect theme="simple" name="testPoint.type"
						list="typeList" doubleName="testPoint.content"
						doubleList="contentList" formName="form1"
						onchange="this.form.action='getTestPoints.action';this.form.submit();"
						label="考点"></s:doubleselect>
					<s:textfield name="questionSubject.questionSubjectContent"
						value="%{questionSubject.questionSubjectContent}" label="题目内容"></s:textfield>
					<s:textfield name="questionSubject.questionBookNum"
						value="%{questionSubject.questionBookNum}" label="题目在教材中编号"></s:textfield>
					<s:textarea name="questionContent.questionContent"
						value="%{questionContent.questionContent}" label="文章"></s:textarea>
					<s:textfield name="question.questionChild" label="试题题干"></s:textfield>
					<s:textfield name="question.questionNumber" label="试题编号"></s:textfield>
					<s:textfield name="answer.optionA" label="A."></s:textfield>
					<s:textfield name="answer.optionB" label="B."></s:textfield>
					<s:textfield name="answer.optionC" label="C."></s:textfield>
					<s:textfield name="answer.optionD" label="D."></s:textfield>
					<s:textfield name="answer.answer" label="正确答案"></s:textfield>
					<s:select name="answer.optionCount"
						list="{'1','2','3','4','5','6','7','8','9','10','11'}"
						label="选项个数"></s:select>
					<s:submit value="添加"></s:submit>
				</s:form>
			</s:if>
			${questionType.type}-${questionType.content}
			<s:elseif test="questionType.content='answer'">
		    2222222222222222222222222222222222222222
			</s:elseif>
			${questionType.content}
			======================
		</s:if>
		<s:elseif test="questionType.type='katagana'">
			<s:if test="questionType.content='select'">questionType.type='katagana' &nbsp; questionType.content='select'</s:if>
			<s:elseif test="questionType.content='fillblank'">questionType.type='katagana' &nbsp; questionType.content='fillblank'</s:elseif>
		</s:elseif>

	</body>
</html>
